package cn.wsalix.order.service;

import java.util.List;
import java.util.Observer;

import cn.anlaser.service.SimpleService;
import cn.wsalix.order.entity.Order;
import cn.wsalix.order.entity.PayNotify;
import cn.wsalix.order.form.OrderForm;
import cn.wsalix.order.form.WeiXinNotifyForm;
import cn.wsalix.order.form.WxPayInfoForm;
import cn.wsalix.order.repository.OrderRepository;

public interface OrderService extends
		SimpleService<OrderForm, OrderRepository, Order>, Observer {

	public List<Order> findByUserId(Long userId);

	public String noticeAdd(PayNotify payNotify);

	public String weiXinNotice(Order order, WeiXinNotifyForm notifyForm);

	public Order findByTradeNo(String tradeNo);

	public WxPayInfoForm getPayInfoByWx(OrderForm form);

	public String getPayInfoByAli(OrderForm entity);
}
